import React, { Component } from 'react'
import { get } from '../../axios/localstorage'
import './manual.scss'
import { getApiManual } from "../../axios/api"


export default class manual extends Component {

    state = {
        context:"<p>111</p><img alt='' src='assets/imgs/bg.png' /><img alt='' src='assets/imgs/bg.png' /><img alt='' src='assets/imgs/bg.png' /><img alt='' src='assets/imgs/bg.png' />"
    }

    componentDidMount(){
        this.getManual();
    }

    getManual=()=>{
        let param = {
            token:get('token')
        }

        getApiManual(param)
        .then( req =>{
            if(req.data.code === 1){

            }
        }).catch( err =>{
            console.error(err)
        })
    }

    render() {
        return (
            <div className="manual">
                <div className="box">
                    <h1>操作手册一</h1>
                    <div className="cbox">
                        <div className="cont" dangerouslySetInnerHTML={{
                            __html: this.state.context
                        }}></div>
                    </div>
                </div>
            </div>
        )
    }
}
